home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / database / postgres / appgen-0.2-a / appgen-0 / AppGEN / apps / pam.def < prev    next >
Encoding:
Text File  |  1996-07-10  |  2.1 KB  |  78 lines

  1. #######################################################
  2. # Sample Application Configuration File               #
  3. #######################################################
  4.  
  5. # Postgres95 specific variables; choice of:
  6. # PGHOST, PGOPTIONS, PGPORT, PGTTY, PGDATABASE, PGREALM.
  7. # See the Postgres manual for details, but you will need to set 
  8. # PGDIR the Postgres95 home directory,
  9. # PGHOST the machine on which Postgres is running and PGDATABASE the
  10. # database containing your database files.
  11.  
  12. PGDIR=/usr/local/postgres95
  13. PGHOST=arthur
  14. PGDATABASE=root
  15.  
  16. # HTTPD specific stuff; HTTPD-DIR is the httpd home directory,
  17. # CGI-URL is the URL of the cgi-bin directory where
  18. # the generated application scripts will be placed. DOC-URL is a document
  19. # directory where plain HTML files can be placed.
  20.  
  21. HTTPD-DIR=/usr/local/httpd
  22. CGI-URL=http://arthur/apps
  23. DOC-URL=http://arthur/docs
  24.  
  25. # Data structure details, TABLE-NAME defines the name of the database class,
  26. # SCREEN-TITLE defines the title on screen, SUMMARY-LIST defines which fields
  27. # are listed on the search summary and FIELDS: is an SQL type definition of 
  28. # the datafile attributes. * denotes primary key and may include several
  29. # attributes. $=attribute FROM class - denotes a foreign key with relationship.
  30. # Terminate each table definition with an END-TABLE clause.
  31.  
  32. TABLE-NAME=sites
  33. SCREEN-TITLE=Site Details
  34. SUMMARY-LIST=site_code, name
  35. FIELDS:
  36.     site_code char(7) *
  37.     name char(30)
  38. END-TABLE
  39.  
  40. TABLE-NAME=blocks
  41. SCREEN-TITLE=Block Details
  42. SUMMARY-LIST=site_code, block, description
  43. FIELDS:
  44.     site_code char(7) * $=site_code from sites
  45.     block char(2) *
  46.     description char(45)
  47.     gen_comment char(45)
  48.     area int
  49.     stories int
  50.     volume int
  51.     year_built int
  52.     year_upgraded int
  53.     funct_cap int
  54.     actual_use int
  55. END-TABLE
  56.  
  57. TABLE-NAME=element
  58. SCREEN-TITLE=Condition Elements
  59. SUMMARY-LIST=element_number, name
  60. FIELDS:
  61.     element_number int *
  62.     name char(25)
  63. END-TABLE 
  64.  
  65. TABLE-NAME=condition
  66. SCREEN-TITLE=Physical Condition
  67. SUMMARY-LIST=site_code, block, element
  68. FIELDS:
  69.     site_code char(7) * $=site_code FROM sites
  70.     block char(2) * $=block FROM blocks
  71.     element int * $=element_number FROM element
  72.     category char(2)
  73.     life int
  74.     repair int
  75.     upgrade int
  76. END-TABLE 
  77.  
  78.